package com.example.msgBoard.model;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;
import java.util.List;

@Data
public class Message {
    // Getters and Setters
    @Setter
    @Getter
    private Integer id;
    private Integer userId;
    private String username; // 添加用户名字段
    private Integer parentId;
    private String content;
    private Timestamp createdAt;
    private Timestamp updatedAt;
    private List<Message> replies; // 添加回复列表

    // 构造函数、getter和setter方法
}
